<?php
//print ;
?>
<script type="text/javascript">
	$(function() {

		/* События для Гугл аналитики*/
		$('body').on('click', 'div.logo a', function()
		{
			mobi03.sendGoogleStatic('bind-seo-logo', $(this).text(), window.location.href);
		});
		$('body').on('click', 'div.notify a', function()
		{
			mobi03.sendGoogleStatic('bind-seo-top', $(this).text(), window.location.href);
		});
		$('body').on('click', 'nav.page-navi.augmented a', function()
		{
			mobi03.sendGoogleStatic('bind-seo-bottom', $(this).text(), window.location.href);
		});
		$('body').on('click', 'ul.audio-reviews a.__play', function()
		{
			mobi03.sendGoogleStatic('audio-from-otzivi', 'play', $(this).data('title'));
		});

		<?php if( $this->controller->id != 'reviews' ): ?>

			$('body').on('click', 'ul.player__buttons a.__play', function()
			{
				mobi03.sendGoogleStatic('audio-from-all', 'play', window.location.href);
			});

		<?php endif; ?>
			
		<?php if( isset(Controller::$pageData['pageType']) && Controller::$pageData['pageType']=='model' ): ?>
			$(document).ready(function()
			{
				VK.init({apiId: 2690040, onlyWidgets: true});
				VK.Widgets.Comments("vk_comments", {limit: 10, attach: "*"});
			});			
		<?php endif; ?>
			
		<?php 
			$contact_counter = 0;
			if( isset(Controller::$pageData['activeCity'])  )
			{
				$contact_counter = Controller::$pageData['activeCity'];
			}
		?>
		/*- contacts-tabs -*/
		$(".contacts-tabs").sliderkit({
			auto: false,
			tabs: true,
			freeheight: true,
			start:<?php echo $contact_counter;?>,
			circular: true,
			panelfx: "none"
		});
	});
</script>